---
import Layout from '../layouts/Layout.astro';
---

<Layout title="量化帮推荐机计划 - 推荐返现活动">
  <div class="page-background"></div>
  
  <!-- 3D悬浮元素装饰 -->
  <div class="floating-elements">
    <div class="float-element float-1"></div>
    <div class="float-element float-2"></div>
    <div class="float-element float-3"></div>
    <div class="float-element float-4"></div>
    <div class="float-element float-5"></div>
    <div class="float-element float-6"></div>
  </div>
  
  <div class="referral-container">
    <header class="header">
      <h1 class="title">量化帮推荐机计划</h1>
      <p class="subtitle"><i class="fas fa-code"></i> 码"上推荐，赚取佣金</p>
    </header>

    <section class="intro-section">
      <p class="intro-text">
        推荐返现计划是为量化帮用户打造的专属福利活动，通过邀请好友注册/登录量化帮后，
        好友首次下单即可返现，佣金比例最高达 30%。
      </p>
    </section>

    <section class="benefits-section">
      <div class="section-header">
        <i class="fas fa-chart-line section-icon"></i>
        <h2 class="section-title">超高推广返佣比例</h2>
      </div>
      
      <div class="benefits-grid">
        <div class="benefit-card">
          <div class="benefit-icon"><i class="fas fa-rocket"></i></div>
          <h3>返佣比例最高达30%</h3>
          <p>佣金不设限制，多邀多得</p>
        </div>

        <div class="benefit-card">
          <div class="benefit-icon"><i class="fas fa-chart-bar"></i></div>
          <h3>邀请下单用户越多，拿到佣金越高</h3>
          <p>多推广，多赚钱</p>
        </div>

        <div class="benefit-card">
          <div class="benefit-icon"><i class="fas fa-gift"></i></div>
          <h3>新老用户双向福利</h3>
          <p>老用户拿佣金，新用户送会员</p>
        </div>
      </div>
    </section>

    <section class="membership-bonus-section">
      <div class="section-header">
        <i class="fas fa-medal section-icon"></i>
        <h2 class="section-title">购买赠送会员福利</h2>
      </div>
      
      <div class="membership-grid">
        <div class="membership-card">
          <div class="membership-icon">1<span class="duration">年</span></div>
          <h3>购买一年</h3>
          <p><i class="fas fa-plus"></i> 赠送1个月会员</p>
        </div>

        <div class="membership-card">
          <div class="membership-icon">2<span class="duration">年</span></div>
          <h3>购买两年</h3>
          <p><i class="fas fa-plus"></i> 赠送3个月会员</p>
        </div>

        <div class="membership-card">
          <div class="membership-icon">3<span class="duration">年</span></div>
          <h3>购买三年</h3>
          <p><i class="fas fa-plus"></i> 赠送6个月会员</p>
        </div>
      </div>
    </section>

    <section class="reward-tiers-section">
      <div class="section-header">
        <i class="fas fa-award section-icon"></i>
        <h2 class="section-title">奖励规则</h2>
      </div>
      
      <div class="tiers-grid">
        <div class="tier-card diamond">
          <div class="tier-badge"><i class="fas fa-gem"></i></div>
          <h3>钻石等级</h3>
          <p class="commission">返佣比例 30%</p>
          <p class="requirement"><i class="fas fa-chart-line"></i> 过去 30 天内邀请好友下单数量为 10 单以上</p>
        </div>

        <div class="tier-card gold">
          <div class="tier-badge"><i class="fas fa-coins"></i></div>
          <h3>黄金等级</h3>
          <p class="commission">返佣比例 20%</p>
          <p class="requirement"><i class="fas fa-chart-line"></i> 过去 30 天内邀请好友下单数量为 10 单及以下</p>
        </div>
      </div>
    </section>

    <section class="process-section">
      <div class="section-header">
        <i class="fas fa-list-ol section-icon"></i>
        <h2 class="section-title">推广流程</h2>
      </div>
      
      <div class="process-steps">
        <div class="step">
          <div class="step-circle">
            <div class="step-number">1</div>
          </div>
          <div class="step-icon"><i class="fas fa-user-plus"></i></div>
          <h3>加入推荐官</h3>
          <p>注册/登录账号</p>
        </div>

        <div class="step">
          <div class="step-circle">
            <div class="step-number">2</div>
          </div>
          <div class="step-icon"><i class="fas fa-share-alt"></i></div>
          <h3>分享推广链接</h3>
          <p>分享专属推广链接给好友</p>
        </div>

        <div class="step">
          <div class="step-circle">
            <div class="step-number">3</div>
          </div>
          <div class="step-icon"><i class="fas fa-shopping-cart"></i></div>
          <h3>好友注册/登录下单</h3>
          <p>好友注册/登录量化帮并在30天内下单(仅限新购)</p>
        </div>

        <div class="step">
          <div class="step-circle">
            <div class="step-number">4</div>
          </div>
          <div class="step-icon"><i class="fas fa-hand-holding-usd"></i></div>
          <h3>佣金发放</h3>
          <p>好友下单，推荐官获得相应等级佣金</p>
        </div>
      </div>
    </section>

    <section class="rules-section">
      <div class="section-header">
        <i class="fas fa-clipboard-list section-icon"></i>
        <h2 class="section-title">推广规则</h2>
      </div>
      
      <div class="rules-container">
        <div class="rule">
          <div class="rule-number">1</div>
          <div class="rule-content">
            <h3><i class="fas fa-file-signature"></i> 申请规则</h3>
            <p>申请成为量化帮推荐官须注册账号。</p>
          </div>
        </div>

        <div class="rule">
          <div class="rule-number">2</div>
          <div class="rule-content">
            <h3><i class="fas fa-layer-group"></i> 等级规则</h3>
            <p><span class="rule-highlight">黄金：</span>过去 30 天内邀请的好友下单数量为 10 单及以下</p>
            <p><span class="rule-highlight">钻石：</span>过去 30 天内邀请好友下单数量为 10 单以上</p>
            <p class="note"><i class="fas fa-info-circle"></i> 邀请好友的新购订单须超过订单日期 30 天以上才可提现</p>
          </div>
        </div>

        <div class="rule">
          <div class="rule-number">3</div>
          <div class="rule-content">
            <h3><i class="fas fa-percentage"></i> 返佣规则</h3>
            <p>推荐官共分为 2 个等级，不同等级对应不同权益，等级越高返佣比例越高。</p>
            <p>分别为<span class="rule-highlight">黄金 20%</span>、<span class="rule-highlight">钻石 30%</span>；</p>
          </div>
        </div>

        <div class="rule">
          <div class="rule-number">4</div>
          <div class="rule-content">
            <h3><i class="fas fa-wallet"></i> 提现规则</h3>
            <p>好友下单后，该新购订单进入 30 天订单审核期，超过 30 天后推荐官可申请佣金提现。</p>
            <p>每位推荐官至少推荐 ≥2 个以上新购订单，才可提现佣金；不足 2 单时，也可以获赠价值相等的会员优惠券。</p>
            <p class="note"><i class="fas fa-info-circle"></i> 佣金被提现后，量化帮有权拒绝新购订单的退款服务。</p>
          </div>
        </div>

        <div class="rule">
          <div class="rule-number">5</div>
          <div class="rule-content">
            <h3><i class="fas fa-link"></i> 关联规则</h3>
            <p>新用户（未注册未付费，已注册未付费）通过推荐官专属邀请链接注册或登录后，与推荐官建立 30 天关联关系，好友在关联期内首次购买量化帮专业计划，推荐官得到相应等级比例的佣金。</p>
            <p class="note"><i class="fas fa-info-circle"></i> 推荐官通过自己的专属推广链接购买（仅限新购），也能享受返佣福利。</p>
          </div>
        </div>
      </div>
    </section>

    <section class="cta-section">
      <div class="cta-content">
        <h2 class="cta-title">立即加入推荐官计划</h2>
        <p class="cta-desc">开始推广，享受高额佣金</p>
        <button class="cta-button"><i class="fas fa-rocket"></i> 立即成为推荐官</button>
      </div>
    </section>
  </div>
</Layout>

<style>
  /* 背景效果 */
  .page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1534972195531-d756b9bfa9f2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center center;
    background-size: cover;
    opacity: 0.08;
    z-index: -1;
  }
  
  /* 3D悬浮元素 */
  .floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }
  
  .float-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(51, 153, 255, 0.2));
    box-shadow: 0 0 40px rgba(0, 102, 204, 0.1);
    backdrop-filter: blur(5px);
    animation: float 20s infinite ease-in-out;
  }
  
  .float-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -150px;
    animation-delay: 0s;
    animation-duration: 35s;
  }
  
  .float-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -100px;
    animation-delay: -5s;
    animation-duration: 25s;
  }
  
  .float-3 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 20%;
    animation-delay: -10s;
    animation-duration: 30s;
  }
  
  .float-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 15%;
    animation-delay: -15s;
    animation-duration: 28s;
  }
  
  .float-5 {
    width: 180px;
    height: 180px;
    bottom: 30%;
    right: 25%;
    animation-delay: -7s;
    animation-duration: 32s;
  }
  
  .float-6 {
    width: 120px;
    height: 120px;
    top: 75%;
    left: 15%;
    animation-delay: -20s;
    animation-duration: 38s;
  }
  
  @keyframes float {
    0%, 100% {
      transform: translate(0, 0) rotate(0deg);
    }
    25% {
      transform: translate(100px, 50px) rotate(90deg);
    }
    50% {
      transform: translate(50px, 100px) rotate(180deg);
    }
    75% {
      transform: translate(-50px, 50px) rotate(270deg);
    }
  }

  .referral-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #333;
    position: relative;
    z-index: 1;
  }

  .header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
  }

  .title {
    font-size: 2.8rem;
    color: #0066cc;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }

  .subtitle {
    font-size: 1.5rem;
    color: #666;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #f9f9f9;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .intro-section {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
  }

  .intro-text {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  }

  .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
  }

  .section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #0066cc, #3399ff);
    border-radius: 3px;
  }

  .section-icon {
    font-size: 2rem;
    color: #0066cc;
    margin-bottom: 1rem;
  }

  .section-title {
    text-align: center;
    font-size: 2rem;
    color: #0066cc;
    font-weight: 700;
  }

  /* 卡片网格样式 */
  .benefits-grid, .membership-grid, .tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .benefit-card, .membership-card, .tier-card {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 102, 204, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .benefit-card::before, .membership-card::before, .tier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    z-index: -1;
  }

  .benefit-card:hover, .membership-card:hover, .tier-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.15);
  }

  .benefit-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #0066cc;
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
    background-color: rgba(0, 102, 204, 0.1);
  }

  .benefit-card h3, .membership-card h3, .tier-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0066cc;
  }

  .benefit-card p, .membership-card p, .tier-card p {
    color: #666;
    line-height: 1.6;
  }

  .membership-icon {
    font-size: 2.5rem;
    font-weight: bold;
    width: 80px;
    height: 80px;
    line-height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc, #3399ff);
    color: white;
    position: relative;
  }

  .duration {
    font-size: 1rem;
    position: absolute;
    bottom: 15px;
    right: 15px;
  }

  .tier-badge {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0066cc;
  }

  .tier-card.diamond {
    background-color: rgba(240, 249, 255, 0.9);
    border: 2px solid #0099ff;
  }

  .tier-card.diamond .tier-badge {
    color: #0099ff;
  }

  .tier-card.gold {
    background-color: rgba(255, 253, 240, 0.9);
    border: 2px solid #ffc107;
  }

  .tier-card.gold .tier-badge {
    color: #ffc107;
  }

  .commission {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1rem 0;
    color: #e91e63;
    padding: 0.5rem 1rem;
    background-color: rgba(233, 30, 99, 0.1);
    border-radius: 5px;
    display: inline-block;
  }

  .requirement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  /* 流程步骤样式 */
  .process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
  }

  .process-steps::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 60px;
    right: 60px;
    height: 3px;
    background: linear-gradient(to right, #0066cc, #3399ff);
    z-index: 0;
  }

  .step {
    text-align: center;
    flex: 1;
    min-width: 200px;
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
  }

  .step-circle {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 0 5px rgba(0, 102, 204, 0.2);
  }

  .step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc, #3399ff);
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
  }

  .step-icon {
    font-size: 2rem;
    color: #0066cc;
    margin-bottom: 1rem;
  }

  .step h3 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #0066cc;
  }

  /* 规则样式 */
  .rules-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
  }

  .rule {
    display: flex;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    backdrop-filter: blur(5px);
  }

  .rule:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.1);
  }

  .rule-number {
    width: 60px;
    background: linear-gradient(to bottom, #0066cc, #3399ff);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
  }

  .rule-content {
    padding: 1.5rem 2rem;
    flex: 1;
  }

  .rule h3 {
    color: #0066cc;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .rule-highlight {
    font-weight: 600;
    color: #0066cc;
  }

  .note {
    color: #e91e63;
    font-size: 0.9rem;
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* CTA 样式 */
  .cta-section {
    text-align: center;
    margin: 4rem 0;
    background: linear-gradient(135deg, #0066cc, #0099ff);
    border-radius: 20px;
    padding: 3rem;
    color: white;
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1550684848-fac1c5b4e853?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center center;
    background-size: cover;
    opacity: 0.1;
    z-index: -1;
  }

  .cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
  }

  .cta-desc {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
  }

  .cta-button {
    background-color: white;
    color: #0066cc;
    border: none;
    border-radius: 30px;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background-color: #f9f9f9;
  }

  /* 响应式调整 */
  @media (max-width: 768px) {
    .referral-container {
      padding: 1rem;
    }
    
    .title {
      font-size: 2.2rem;
    }
    
    .subtitle {
      font-size: 1.2rem;
    }
    
    .section-title {
      font-size: 1.8rem;
    }
    
    .process-steps {
      flex-direction: column;
    }

    .process-steps::before {
      display: none;
    }
    
    .cta-section {
      padding: 2rem 1rem;
    }

    .membership-grid, .tiers-grid {
      grid-template-columns: 1fr;
    }
    
    .float-element {
      display: none;
    }
  }

  @media (max-width: 576px) {
    .title {
      font-size: 1.8rem;
    }

    .rule {
      flex-direction: column;
    }

    .rule-number {
      width: 100%;
      padding: 0.5rem 0;
    }
  }
</style> 